<%-- 
    Document   : header
    Created on : Feb 6, 2012, 3:25:48 PM
    Author     : PhucAn
--%>

<%@page import="util.SharingUtil"%>
<%@page import="dto.User"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>       
    </head>
    <body>            
            <div id="top-menu">
                <%
                    dto.User headuser = SharingUtil.getUser(session);
                    if(headuser.getId()==0){
                        response.sendRedirect("../public/index.jsp?pcontent=login");
                    }
                %>
                <ul class="dropdown-menu-bar">
                    <li><a href='../public/index.jsp'>Home </a></li>                 
                    <li>
                        <a href="index.jsp"><%=headuser.getUsername()%></a>
                        <ul>
                            <li>
                                <a href="?pcontent=profile">Profile</a>
                            </li>
                            <li>
                                <a href="../public/index.jsp?pcontent=logout">Sign out</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div id="banner">           
                <div id="logo"><img src="../images/logo.jpg" alt="logo"/></div>
                <div id="page-title">ONLINE QUIZ</div>
            </div>
    </body>
</html>
